<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<h2>{{counter}}</h2>
			<!-- <button type="button" class="mui-btn mui-btn-blue" v-on:click="counter++">+</button>
			<button type="button" class="mui-btn mui-btn-blue" v-on:click="counter--">-</button> -->
			<!-- <button type="button" class="mui-btn mui-btn-blue" v-on:click="increment">+</button>
			<button type="button" class="mui-btn mui-btn-blue" v-on:click="decrement">-</button> -->
			<button type="button" class="mui-btn mui-btn-blue" @click="increment">+</button>
			<button type="button" class="mui-btn mui-btn-blue" @click="decrement">-</button>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			const app=new Vue({
				el:'#app',
				data:{
					counter:0
				},
				methods:{
					increment(){
						this.counter++;
					},
					decrement(){
						this.counter--;
					},
				}
			})
		</script>
	</body>
</html>
